﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using Sharp.Domain.Model;
using Sharp.Infrastructure;
using System.ComponentModel.DataAnnotations;

namespace Sharp.Domain.CMSBoundedContext.VIUModule.Aggregates
{
    /// <summary>
    /// 多媒体
    /// </summary>
    public partial class MultiMedia : AggregateRoot, IStandardEntity
    {
        public MultiMedia()
        {
        }
        /// <summary>
        /// 媒体类型
        /// </summary>
        public MediaType Type { get; set; }
        public Guid? VIUId { get; set; }
        public string Title { get; set; }
        [StringLength(255)]
        public string ThumbUrl { get; set; }
        [StringLength(255)]
        public string PicUrl { get; set; }
        public string TempFlag { get; set; }

        public int OrderId { get; set; }

        public virtual VIU VIU { get; set; }

        public DateTime? CheckInTime { get; set; }
        public Guid? CheckInUserId { get; set; }
        public DateTime? ModifiTime { get; set; }
        public Guid? ModifiedUserId { get; set; }
        public bool IsDefault { get; set; }
    }
    /// <summary>
    /// 媒体类型
    /// </summary>
    public enum MediaType
    {
        Photo = 1,
        Video = 2
    }
}